package com.rockxin.cat.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.rockxin.cat.MainActivity;
import com.rockxin.cat.R;
import com.rockxin.cat.base.AppManager;
import com.rockxin.cat.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by cat on 18-3-1.
 */

public class BidSuccessActivity extends BaseActivity {

    @BindView(R.id.back_img)
    ImageView backImg;
    @BindView(R.id.title)
    TextView title;
    @BindView(R.id.right_img)
    ImageView rightImg;
    @BindView(R.id.iv_success)
    ImageView ivSuccess;
    @BindView(R.id.btn_investment)
    Button btnInvestment;
    @BindView(R.id.btn_return_home)
    Button btnReturnHome;
    @BindView(R.id.btn_home)
    Button btnHome;

    @Override
    protected int setLayout() {
        return R.layout.activity_bid_success;
    }

    @Override
    public void initData() {
        title.setText("投标成功");
        setListener();
        getData();
    }

    private void setListener() {
        backImg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                AppManager.getInstance().killAll();
                startActivity(new Intent(BidSuccessActivity.this, MainActivity.class));
            }
        });
        btnReturnHome.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
        btnHome.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                AppManager.getInstance().killAll();
                startActivity(new Intent(BidSuccessActivity.this, MainActivity.class));
            }
        });
    }

    private void getData() {

    }

    @Override
    public void onBackPressed() {
        super.onBackPressed();
        AppManager.getInstance().killAll();
        startActivity(new Intent(BidSuccessActivity.this, MainActivity.class));
    }
}
